var Map = require('BlackMap');
cc.Class({
    extends: Map ,
    properties: {
        mapObj: {
            default: null,
            type: cc.JsonAsset,
        },
    },
    onLoad () {
        this.o = this.mapObj.json;
        let arr=['infoObj','FPS2','flagPoint','MapObj','layerRect','MapRect','tagObj','nodeParentObj','nodeAllObj','ymcMapSprArr','MapSprArr','LayerArr'];
        for (let i = 0; i < arr.length; i++) {            this[arr[i]]=this.o[arr[i]];
        }
        this.onLoad2();
    },
    onLayerFun2(){
        let pathObj=this.o['pathObj'];
        let actObj=this.o['actObj'];
        let anchorObj=this.o['anchorObj'];
        let rotaObj=this.o['rotaObj'];
        let runObj=this.o['runObj'];
        this.onPath(pathObj);
        this.o=null;;
    },
    _isBo(obj){
        for(let s in obj){
            return true;
        }
        return false;
    },
});

